DND: Move private api to a private header
authorMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2015 21:54:01 +0000 (17:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2015 21:54:01 +0000 (17:54 -0400)
gtk/Makefile.am
gtk/gtkdnd.c
gtk/gtkdnd.h
gtk/gtkdndprivate.h [new file with mode: 0644]
gtk/gtkmain.c

index 9e8b2a8ac192bb258565ae8678004cbba9797e47..7fd739bcc07b0d5523662a57be84863c96e60ef4 100644 (file)
@@ -425,6 +425,7 @@ gtk_private_h_sources =             \
        gtkcsswidgetnodeprivate.h       \
        gtkcustompaperunixdialog.h \
        gtkdialogprivate.h      \
+       gtkdndprivate.h         \
        gtkentryprivate.h       \
        gtkeventcontrollerprivate.h     \
        gtkfilechooserembed.h   \
index 9efbee030ca2fa7275ffb7e5cead2d883f8ba65e..94cc3f2725151aca27ced71124710db89ca77745 100644 (file)
@@ -44,6 +44,7 @@
 #endif
 
 #include "gtkdnd.h"
+#include "gtkdndprivate.h"
 #include "gtkiconhelperprivate.h"
 #include "gtkicontheme.h"
 #include "gtkmain.h"
index 5f7c4eb442bef6b89fa9f271d961c3b35c2c5352..d15fdb9f7f1da6adaeee6dcd301418cef75684ea 100644 (file)
@@ -247,11 +247,6 @@ gboolean gtk_drag_check_threshold (GtkWidget *widget,
                                   gint       current_x,
                                   gint       current_y);
 
-/* Internal functions */
-void _gtk_drag_source_handle_event (GtkWidget *widget,
-                                   GdkEvent  *event);
-void _gtk_drag_dest_handle_event (GtkWidget *toplevel,
-                                 GdkEvent  *event);
 
 G_END_DECLS
 
diff --git a/gtk/gtkdndprivate.h b/gtk/gtkdndprivate.h
new file mode 100644 (file)
index 0000000..f3eee94
--- /dev/null
@@ -0,0 +1,36 @@
+/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2015 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_DND_PRIVATE_H__
+#define __GTK_DND_PRIVATE_H__
+
+
+#include <gtk/gtkwidget.h>
+#include <gtk/gtkselection.h>
+
+
+G_BEGIN_DECLS
+
+void _gtk_drag_source_handle_event (GtkWidget *widget,
+                                   GdkEvent  *event);
+void _gtk_drag_dest_handle_event   (GtkWidget *toplevel,
+                                   GdkEvent  *event);
+
+G_END_DECLS
+
+#endif /* __GTK_DND_PRIVATE_H__ */
index f50025e3c919253b4f31b54be186a47e10d58edc..2907db7383d00493ced312aaf9d92e3e66b45997 100644 (file)
 #include "gtkbox.h"
 #include "gtkclipboard.h"
 #include "gtkdebug.h"
-#include "gtkdnd.h"
+#include "gtkdndprivate.h"
 #include "gtkmain.h"
 #include "gtkmenu.h"
 #include "gtkmodules.h"